package com.dykj.fireFighting.server.fire.devhis.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dykj.fireFighting.api.fire.devhis.dto.DevHisDto;
import com.dykj.fireFighting.api.fire.devhis.dto.DeviceDto;
import com.dykj.fireFighting.api.fire.devhis.entity.Device;
import com.dykj.fireFighting.api.fire.devhis.entity.vo.DevHisVo;
import com.dykj.fireFighting.api.fire.devhis.entity.vo.DevHisWaterVo;
import com.dykj.fireFighting.api.fire.devhis.entity.vo.DeviceElectricalVo;
import com.dykj.fireFighting.api.fire.devhis.entity.vo.DeviceWaterVo;
import com.dykj.fireFighting.common.core.vo.PageVo;
import org.apache.ibatis.annotations.Param;

/**
 * @Author fgc
 * @Date 2021/8/31 8:47
 * @ Description：
 */
public interface DevHisMapper {
    IPage<DevHisVo> getDevHisList(Page page, @Param("ew") DevHisDto devHisDto);
    IPage<DevHisVo> getDevHisFaultList(Page page ,@Param("ew") DevHisDto devHisDto);
    IPage<DevHisWaterVo> getDevHisWater(Page page , @Param("relationId") String relationId);
    int getFaultNotRead(@Param("ew")DevHisDto devHisDto);
    int updateFaultReadStatus(@Param("ew") DevHisDto devHisDto);
    /**
     * 获取火灾自动报警设备当前状态
     * @param relationId
     * @return
     */
    String getFireDevStatus(String relationId);

    /**
     * 获取水设备当前状态
     * @param relationId
     * @return
     */
    String getWaterDevStatus(String relationId);

    /**
     * 获取电气火灾报警设备状态
     * @param relationId
     * @return
     */
    String getElectricalDevStatus(String relationId);
    /**
     * 水设备详情
     * @param relationId
     * @return
     */
    DeviceWaterVo getDeviceWaterDetails(String relationId);

    /**
     * 电气设备详情
     *
     * @param relationId
     * @return
     */
    DeviceElectricalVo getDeviceElectricalDetails(String relationId);
    IPage<Device> pageList(Page page, @Param("ew") DeviceDto deviceDto);

}
